package day03;

import java.util.Arrays;
import java.util.Scanner;

public class Test {
	
	public static void main(String[] args) {
		
		int[] arr = {2,45,23,13,34};
		
		int[] arr2= {};
		
		int count=0;
		
		while(true) {
			Scanner scaner  = new Scanner(System.in);
			int num = scaner.nextInt();
			if(-1 == num) {
				break;
			}
			arr2[count++] = num;
		}
		System.out.println(Arrays.toString(arr2));
		
		
		
//		int sum = 0;
//		for(int i=0;i<arr.length;i++) {
//			if(arr[i]<60) {
//				
//			}
//			sum += arr[i];
//		}
//		int av = sum/arr.length;
		
	}

}
